package com.maomao.admin.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication(scanBasePackages = {"com.maomao.admin"})
@EnableJpaRepositories(basePackages = "com.maomao.admin.persistence.repository")
@EntityScan(basePackages = {"com.maomao.admin.domain.*.entry"})
public class AppStartup {
    public static void main(String[] args) {
        try {
            SpringApplication.run(AppStartup.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
